package cc.android.testapp.ui.ui.main;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

import cc.android.testapp.R;
import cc.android.testapp.util.CLog;

public class TestActivity extends FragmentActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        CLog.log("find view : " + String.valueOf(findViewById(R.id.btn_left)));
        getSupportFragmentManager().beginTransaction().add(android.R.id.content, new MyFragment()).commit();
        //getSupportFragmentManager().getFragments().get(0).getView()
        CLog.log("find view : " + String.valueOf(findViewById(R.id.btn_left)));
    }
}
